﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editType.aspx.cs" Inherits="SiteInfo_Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
      <script type="text/javascript" src="../edit/jquery/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../edit/xheditor-zh-cn.src.js"></script>
    <script src="../js/jquery.autocomplete.js" type="text/javascript"  language="javascript"></script>
    <script src="../js/StockSearchData.js" language="javascript" type="text/javascript"></script>
    <script type="text/javascript" defer="defer" src="../My97DatePicker/WdatePicker.js"></script>
    <script src="../js/jquery-ui-1.7.3.custom.min.js"></script>
       <script>
           $(document).ready(function () {
               $("#btnBack").click(function () {
                   document.location = "default.aspx";
               })
           })
    </script>
    <title></title>
</head>
<body>
    <div class="page_title">导航页面管理&nbsp; &gt; 编辑网站所属分类</div>
    <form id="form1" runat="server">
    <div class="button_bar">
	<input type="button" class="common_button" id="btnBack" value="返回"/>
    <asp:Button ID="btnSave" CssClass="common_button" runat="server" Text="添加" 
            onclick="btnSave_Click" />
</div>
    <table class="query_form_table">
	<tr>
		<th>类型编号</th>
		<td> 
            <asp:Label ID="txtId" runat="server" Text=""></asp:Label>
        </td>
		<th>导航名称</th>
		<td>
             <asp:Label ID="txtName" runat="server" Text=""></asp:Label>
        </td>
	</tr>
    <th>导航网址</th>
		<td>
         <asp:Label ID="txtUrl" runat="server" Text=""></asp:Label>
        </td>
		<th>所属分类</th>
		<td>
       <%-- <asp:TextBox ID="txtUrl" runat="server" Width="193px" /> --%>
			<asp:DropDownList ID="ddlPid" runat="server">
            </asp:DropDownList>
        </td>
    <%--<tr>
		<th>导航名称</th>
		<td><asp:TextBox ID="txtName" runat="server" /> 
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="*" ControlToValidate="txtName" Display="Dynamic" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </td>
		<th>类型状态</th>
		<td>
          --  <asp:RadioButton ID="rbtnNormal" value="1" runat="server" Text="正常" Checked="True" GroupName="type" 
             />
            <asp:RadioButton ID="rbtnForbidden" value="0" runat="server" Text="禁用" GroupName="type" 
              />
        </td>
	</tr>	--%>
	<%--<tr>
		<th>备注</th>
		<td colspan="3"><asp:TextBox ID="txtMemo" TextMode="MultiLine" runat="server" 
                Height="52px" Width="582px" /></td>
	</tr>--%>
    <tr>
      <table class="data_list_table">
            <tr>
                <th>
                    类型编号
                </th>
                <th>
                    名称
                </th>
                <th class="style1">
                    网址
                </th>
                <th>
                    所属分类
                </th>
                <th>
                    最后更新时间
                </th>
          <%--      <th>
                    父类型
                </th>
                <th>
                    是否禁用
                </th>--%>
                <th>
                    操作
                </th>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr>
                        <td class="list_data_number">
                            <%# Eval("sid") %>
                        </td>
                        <td class="list_data_text">
                            <%# Eval("SiteName")%>
                        </td>
                        <td class="list_data_text">
                            <%# Eval("SiteUrl")%>
                        </td>
                        <td class="list_data_ltext">
                            <%# Eval("name")%>
                        </td>
                        <td class="list_data_text">
                            <%# Eval("EditTime", "{0:yyyy-MM-dd HH:mm:ss}")%>
                        </td>
                   <%--     <td class="list_data_text">
                            <%# Eval("pid") %>
                        </td>
                        <td class="list_data_text">
                            <%# Eval("enable") %>
                        </td>--%>
                        <td class="list_data_ltext">
                            <%--<a href='edit.aspx?id=<%# Eval("sid") %>'><img src="../images/bt_edit.gif" alt="修改" title="修改"  /></a>
                           <a href="editType.aspx?id=<%# Eval("sid") %>"><img src="../images/bt_deal.gif" alt="设置分类" title="设置分类" /></a>--%>
                            <a href='deleteS.aspx?id=<%# Eval("id") %>&&sid=<%# Eval("sid")%>' onclick="return confirm('确定删除？')" ><img src="../images/bt_del.gif" alt="删除"  /> </a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <th colspan="6" class="pager">
                    <div class="pager">
                        
                    </div>
                </th>
            </tr>
        </table>
    </tr>
	</table>

    </form>
</body>
</html>
